package io.renren;

import java.sql.SQLOutput;

class A{
    public A(){
        System.out.println("A构造方法");
    }
    {
        System.out.println("A初始化块");
    }
    static {
        System.out.println("A static 块");
    }
}

class B extends A{
    public B(){
        System.out.println("B构造方法");
    }
    {
        System.out.println("B初始化块");
    }
    static {
        System.out.println("B static 块");
    }
}

public class C extends B{
    public C(){
        System.out.println("C构造方法");
    }
    {
        System.out.println("C初始化块");
    }
    static {
        System.out.println("C static 块");
    }

    public static void main(String[] args) {
        new C();
    }
}
